﻿using HtmlAgilityPack;
using Packed.Simplify;
using ProcessLib.Ratp.Page.Models;
using ProcessLib.Ratp.Page.Processors;

namespace ProcessLib.Ratp.Page.Provider;

public class SimplifyPage
{
    public static HtmlPage Provider()
    {
        var path = @"C:\Users\betha\RiderProjects\StyleSharp\ProcessLib\resources\sci2.html";
        var docText = File.ReadAllText(path);
        var res = Simplifier.Simplify(docText);
        var document = new HtmlDocument();
        document.LoadHtml(res.Text);
        return PageParting.GetPages(document).FirstOrDefault();
    }
}